package com.yx.cloud.activity;

import android.util.Log;
import android.view.View;

import com.yx.cloud.R;
import com.yx.cloud.base.BaseActivity;
import com.yx.cloud.databinding.HelpmessageActivityBinding;
import com.yx.cloud.utils.Intent_utils;
import com.yx.cloud.utils.RomUtils;

/**
 * 反馈帮助详情
 */
public class HelpMessageActivity extends BaseActivity {
    private static final String TAG = "HelpMessageActivity";
    private HelpmessageActivityBinding binding;

    @Override
    public void onCreate() {
        binding = HelpmessageActivityBinding.inflate(getLayoutInflater());
        setContentView(binding.getRoot());
        initData();
    }

    private void initData() {

        String hdType = getIntent().getStringExtra("hdType");

        Log.d(TAG, "HelpMessageActivity : " + hdType);

        if ("rl_app1".equals(hdType)) {
            binding.textView01.setText(getString(R.string.MY_Help_App_Titlt1));
            binding.textView02.setText(getString(R.string.MY_Help_App_Tip1));
        } else if ("rl_app2".equals(hdType)) {
            binding.textView01.setText(getString(R.string.MY_Help_App_Titlt2));
            binding.textView02.setText(getString(R.string.MY_Help_App_Tip2));
        } else if ("rl_app3".equals(hdType)) {
            binding.textView01.setText(getString(R.string.MY_Help_App_Titlt3));
            binding.textView02.setText(getString(R.string.MY_Help_App_Tip3));
        } else if ("rl_app4".equals(hdType)) {
            binding.textView01.setText(getString(R.string.MY_Help_App_Titlt4));
            binding.textView02.setText(getString(R.string.MY_Help_App_Tip4));
        } else if ("rl_app5".equals(hdType)) {
            binding.textView01.setText(getString(R.string.MY_Help_App_Titlt5));
            binding.textView02.setText(getString(R.string.MY_Help_App_Tip5));
        } else if ("rl_app6".equals(hdType)) {
            binding.textView01.setText(getString(R.string.MY_Help_App_Titlt6));
            binding.textView02.setText(getString(R.string.MY_Help_App_Tip6));
        } else if ("rl_app7".equals(hdType)) {
            binding.textView01.setText(getString(R.string.MY_Help_App_Titlt7));
            binding.textView02.setText(getString(R.string.MY_Help_App_Tip7));
        } else if ("rl_app8".equals(hdType)) {
            binding.textView01.setText(getString(R.string.MY_Help_App_Titlt8));
            binding.textView02.setText(getString(R.string.MY_Help_App_Tip8));
        } else if ("rl_equipment1".equals(hdType)) {
            binding.textView01.setText(getString(R.string.MY_Help_Device_Titlt1));
            binding.textView02.setText(getString(R.string.MY_Help_Device_Tip1));
        } else if ("rl_equipment2".equals(hdType)) {
            binding.textView01.setText(getString(R.string.MY_Help_Device_Titlt2));
            binding.textView02.setText(getString(R.string.MY_Help_Device_Tip2));
        } else if ("rl_equipment3".equals(hdType)) {
            binding.textView01.setText(getString(R.string.MY_Help_Device_Titlt3));
            binding.textView02.setText(getString(R.string.MY_Help_Device_Tip3));
        } else if ("rl_equipment4".equals(hdType)) {
            binding.textView01.setText(getString(R.string.MY_Help_Device_Titlt4));
            binding.textView02.setText(getString(R.string.MY_Help_Device_Tip4));
        } else if ("rl_equipment5".equals(hdType)) {
            binding.textView01.setText(getString(R.string.MY_Help_Device_Titlt5));
            binding.textView02.setText(getString(R.string.MY_Help_Device_Tip5));
        } else if ("rl_equipment6".equals(hdType)) {
            binding.textView01.setText(getString(R.string.MY_Help_Device_Titlt6));
            binding.textView02.setText(getString(R.string.MY_Help_Device_Tip6));
        } else if ("rl_equipment7".equals(hdType)) {
            binding.textView01.setText(getString(R.string.MY_Help_Device_Titlt7));
            binding.textView02.setText(getString(R.string.MY_Help_Device_Tip7));
        } else if ("rl_equipment8".equals(hdType)) {
            binding.textView01.setText(getString(R.string.MY_Help_Device_Titlt8));
            binding.textView02.setText(getString(R.string.MY_Help_Device_Tip8));
        }


        binding.ivHelpMessReturn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                if (RomUtils.isFastClick()) {
                    return;
                }
                Intent_utils.backIntent(HelpMessageActivity.this);
            }
        });

    }
}
